package com.ht.temp.mapper;

import com.ht.temp.entity.YearReport;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mayke_zhou
 * @since 2018-12-24
 */
@Repository
public interface YearReportMapper extends BaseMapper<YearReport> {
    int deleteByPrimaryKey(Integer yearId);

    int insertSelective(YearReport record);

    YearReport selectByPrimaryKey(Integer yearId);


    List<YearReport>  selectYearReportByYear(@Param("nowTime") String nowTime, @Param("afterTime") String afterTime, @Param("deviceId") Integer deviceId);

    //查询年报表信息
    List<YearReport> selectByYearReport(YearReport report);


    List<YearReport> selectByMouthReport();
}
